package com.visionet.school.app.web.service.dynamic;

import com.visionet.school.app.web.entity.dynamic.DynamicContent;
import com.visionet.school.app.web.repository.dynamic.DynamicContentRepository;
import com.visionet.school.app.web.repository.dynamic.DynamicRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by hxpeng on 2017/4/21.
 */

@Service
public class DynamicContentService {

    private static final Logger logger = LoggerFactory.getLogger(DynamicContentService.class);

    @Resource
    private DynamicRepository dynamicRepository;

    @Resource
    private DynamicContentRepository dynamicContentRepository;

    public DynamicContent findOne(String id){
        return dynamicContentRepository.findOne(id);
    }

}
